$(function(){
		$.yzfangfa("请输入手机号",2,"error-tip",'t_m_emp');
		$.yzfangfa("手机格式不正确",2,"error-tip",'t_m');

		$.yzfangfa("请输入密码",52,"error-tip",'t_w_emp');
		$.yzfangfa("账号或密码错误,请重新输入",52,"error-tip",'t_w');
		
		$.yzfangfa("请输入验证码",102,"error-tip",'t_code_emp');
		$.yzfangfa("验证码错误,请重新输入",102,"error-tip",'t_code');
		
		$('.errorbox').css('display','none');
		
		$('#password').on('focus',function(){
			var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
			console.log($(".email").val());
			console.log($(".email").val().length);
			if($(".email").val().length==0){
				$('.t_m_emp').css('display','block');
				$('.t_m').css('display','none');
			}else{
				if(!myreg.test($(".email").val())) 
				{ 
						$('.t_m_emp').css('display','none');
						$('.t_m').css('display','block');
				} else{
					$('.t_m').css('display','none');
				}
			}
		});
		$('#logincode').on('focus',function(){
			if($(".password").val().length==0){
				$('.t_w_emp').css('display','block');
			}else{
				$('.t_w_emp').css('display','none');
			}
		});
});